.class public Lcom/estrongs/android/ui/fastscroller/vertical/VerticalRecyclerViewFastScroller;
.super Les/lx;
.source "VerticalRecyclerViewFastScroller.java"


# instance fields
.field private m:Les/rx;
    .annotation build Landroidx/annotation/Nullable;
    .end annotation
.end field

.field private n:Les/nx;
    .annotation build Landroidx/annotation/Nullable;
    .end annotation
.end field

.field private o:I


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .locals 1

    const/4 v0, 0x0

    .line 1
    invoke-direct {p0, p1, v0}, Lcom/estrongs/android/ui/fastscroller/vertical/VerticalRecyclerViewFastScroller;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .locals 1

    const/4 v0, 0x0

    .line 2
    invoke-direct {p0, p1, p2, v0}, Lcom/estrongs/android/ui/fastscroller/vertical/VerticalRecyclerViewFastScroller;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
    .locals 0

    .line 3
    invoke-direct {p0, p1, p2, p3}, Les/lx;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    .line 4
    invoke-virtual {p0}, Landroid/widget/FrameLayout;->getResources()Landroid/content/res/Resources;

    move-result-object p1

    const p2, 0x7f070052

    invoke-virtual {p1, p2}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I

    move-result p1

    iput p1, p0, Lcom/estrongs/android/ui/fastscroller/vertical/VerticalRecyclerViewFastScroller;->o:I

    return-void
.end method


# virtual methods
.method public a(F)V
    .locals 2

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/ui/fastscroller/vertical/VerticalRecyclerViewFastScroller;->n:Les/nx;

    if-nez v0, :cond_0

    return-void

    :cond_0
    const/4 v0, 0x0

    const/4 v1, 0x0

    cmpl-float v0, p1, v0

    if-eqz v0, :cond_1

    .line 2
    invoke-virtual {p0}, Landroid/widget/FrameLayout;->getVisibility()I

    move-result v0

    if-eqz v0, :cond_1

    .line 3
    invoke-virtual {p0, v1}, Landroid/widget/FrameLayout;->setVisibility(I)V

    .line 4
    iget-object v0, p0, Les/lx;->h:Les/lx$d;

    if-eqz v0, :cond_1

    .line 5
    invoke-interface {v0, v1}, Les/lx$d;->a(I)V

    .line 6
    :cond_1
    iget-object v0, p0, Lcom/estrongs/android/ui/fastscroller/vertical/VerticalRecyclerViewFastScroller;->n:Les/nx;

    invoke-virtual {v0, p1}, Les/nx;->a(F)F

    move-result p1

    iget-object v0, p0, Les/lx;->b:Landroid/view/View;

    invoke-virtual {v0}, Landroid/view/View;->getHeight()I

    move-result v0

    div-int/lit8 v0, v0, 0x2

    int-to-float v0, v0

    sub-float/2addr p1, v0

    .line 7
    invoke-static {}, Lcom/estrongs/android/ui/theme/b;->r()Lcom/estrongs/android/ui/theme/b;

    move-result-object v0

    invoke-virtual {v0}, Lcom/estrongs/android/ui/theme/b;->m()Z

    move-result v0

    if-eqz v0, :cond_2

    iget-boolean v0, p0, Les/lx;->i:Z

    if-eqz v0, :cond_2

    .line 8
    iget v1, p0, Lcom/estrongs/android/ui/fastscroller/vertical/VerticalRecyclerViewFastScroller;->o:I

    :cond_2
    int-to-float v0, v1

    cmpg-float v1, p1, v0

    if-gtz v1, :cond_3

    move p1, v0

    .line 9
    :cond_3
    iget-object v0, p0, Les/lx;->b:Landroid/view/View;

    invoke-static {v0, p1}, Landroidx/core/view/ViewCompat;->setY(Landroid/view/View;F)V

    return-void
.end method

.method protected b()V
    .locals 4

    .line 1
    new-instance v0, Les/mx;

    iget-object v1, p0, Les/lx;->a:Landroid/view/View;

    .line 2
    invoke-static {v1}, Landroidx/core/view/ViewCompat;->getY(Landroid/view/View;)F

    move-result v1

    iget-object v2, p0, Les/lx;->a:Landroid/view/View;

    invoke-static {v2}, Landroidx/core/view/ViewCompat;->getY(Landroid/view/View;)F

    move-result v2

    iget-object v3, p0, Les/lx;->a:Landroid/view/View;

    invoke-virtual {v3}, Landroid/view/View;->getHeight()I

    move-result v3

    int-to-float v3, v3

    add-float/2addr v2, v3

    iget-object v3, p0, Les/lx;->b:Landroid/view/View;

    invoke-virtual {v3}, Landroid/view/View;->getHeight()I

    move-result v3

    div-int/lit8 v3, v3, 0x2

    int-to-float v3, v3

    sub-float/2addr v2, v3

    invoke-direct {v0, v1, v2}, Les/mx;-><init>(FF)V

    .line 3
    new-instance v1, Les/qx;

    invoke-direct {v1, v0}, Les/qx;-><init>(Les/mx;)V

    iput-object v1, p0, Lcom/estrongs/android/ui/fastscroller/vertical/VerticalRecyclerViewFastScroller;->m:Les/rx;

    .line 4
    new-instance v1, Les/nx;

    invoke-direct {v1, v0}, Les/nx;-><init>(Les/mx;)V

    iput-object v1, p0, Lcom/estrongs/android/ui/fastscroller/vertical/VerticalRecyclerViewFastScroller;->n:Les/nx;

    return-void
.end method

.method public b(FF)V
    .locals 1

    .line 5
    new-instance v0, Les/mx;

    invoke-direct {v0, p1, p2}, Les/mx;-><init>(FF)V

    .line 6
    new-instance p1, Les/qx;

    invoke-direct {p1, v0}, Les/qx;-><init>(Les/mx;)V

    iput-object p1, p0, Lcom/estrongs/android/ui/fastscroller/vertical/VerticalRecyclerViewFastScroller;->m:Les/rx;

    .line 7
    new-instance p1, Les/nx;

    invoke-direct {p1, v0}, Les/nx;-><init>(Les/mx;)V

    iput-object p1, p0, Lcom/estrongs/android/ui/fastscroller/vertical/VerticalRecyclerViewFastScroller;->n:Les/nx;

    return-void
.end method

.method protected getLayoutResourceId()I
    .locals 1

    const v0, 0x7f0c035b

    return v0
.end method

.method protected getScrollProgressCalculator()Les/px;
    .locals 1
    .annotation build Landroidx/annotation/Nullable;
    .end annotation

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/ui/fastscroller/vertical/VerticalRecyclerViewFastScroller;->m:Les/rx;

    return-object v0
.end method
